//
//  BlogInfo.m
//  iFlickr
//
//  Created by 张 霄鹤 on 09-7-3.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import "BlogInfo.h"


@implementation BlogInfo

@synthesize blogID;
@synthesize blogName;
@synthesize blogURL;
@synthesize needPassword;
@synthesize password;

/**
 * 设置属性
 */
- (void)setProperties:(NSDictionary *)params{
	NSString *tmp = nil;
	tmp = [params objectForKey:@"id"];
	if(tmp){
		self.blogID = tmp;
	}
	
	tmp = [params objectForKey:@"name"];
	if(tmp){
		self.blogName = tmp;
	}
	
	tmp = [params objectForKey:@"url"];
	if(tmp){
		self.blogURL = tmp;
	}
	
	tmp = [params objectForKey:@"needspassword"];
	if(tmp){
		self.needPassword = [tmp isEqualToString:@"1"];
	}
	
	tmp = [params objectForKey:@"password"];
	if(tmp){
		self.password = tmp;
	}
}

@end
